jupyter notebook pass python variable to shell

48

jupyter notebook pass python variable to shell -

dir_path = "/home/foo/bar"
!cp file1 $dir_path

dir_path = "/home/foo/bar"
!cp file1 {dir_path}

!cp file1 {dir_path + sub_dir}

Comments

Submit
0 Comments